package org.example.feign;

// TODO: 2025/11/05 商品业务模块调用会员业务模块：feign接口

import org.example.domain.Member;
import org.example.feign.sentinel.ProdMemberFeignSentinel;
import org.example.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "member-service",contextId = "ProdMemberFeign", fallback = ProdMemberFeignSentinel.class)
public interface ProdMemberFeign {

    @GetMapping("p/user/getMemberListByOpenIds")
    public Result<List<Member>> getMemberListByOpenIds(@RequestParam List<String> openIds);

}
